diff -Naur a/configure.in b/configure.in
--- a/configure.in	2013-12-18 15:38:57.000000000 +0000
+++ b/configure.in	2018-09-18 02:42:58.996249845 +0100
@@ -427,9 +427,6 @@
 				CFLAGS="$CFLAGS -I$withval"
 				CPPFLAGS="$CPPFLAGS -I$withval"
 			fi
-			if test -d "$withval/lib"; then
-				LDFLAGS="$LDFLAGS -L$withval/lib"
-			fi
 		fi
 
 		AC_CHECK_HEADERS([$3], [$1=yes], [$1=no; break;])
